import { createApp } from "vue";
import App from "./App.vue";
// 暗黑主题样式
import "element-plus/dist/index.css";
import "element-plus/theme-chalk/dark/css-vars.css";
import "element-plus/es/components/input-tag/style/css";
import { createPinia } from "pinia";
import "@/styles/index.scss";
import setupPlugins from "@/plugins/index";
import VueKonva from "vue-konva";

import router from "./router"; // 引入路由
import * as ElementPlusIconsVue from "@element-plus/icons-vue";
const app = createApp(App);
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component);
}
app.use(createPinia());
app.use(router);
app.use(VueKonva);
app.use(setupPlugins);
app.mount("#app");
